import request from '@/utils/request'

const api = {
  login: '/auth/login',
  getUserInfo: '/auth/getUserInfo',
}

export const authAPI = {
  login(data) {
    return request({
      url: api.login,
      method: 'post',
      data,
      //   headers: { 'Content-Type': 'multipart/form-data' },
    })
  },
  getUserInfo(paramas) {
    return request({
      url: api.getUserInfo,
      method: 'get',
      paramas,
    })
  },
}
